package com.woniuxy.micromedicalserver.hospitalmanage.service.impl;

import com.woniuxy.micromedicalserver.bean.HospitalTypeBean;
import com.woniuxy.micromedicalserver.hospitalmanage.mapper.HospitalTypeMapper;
import com.woniuxy.micromedicalserver.hospitalmanage.service.IHospitalTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class HospitalTypeServiceImpl implements IHospitalTypeService {

    @Resource
    private HospitalTypeMapper hospitalTypeMapperImpl;

    @Override
    public List<HospitalTypeBean> selectAll() {
        return hospitalTypeMapperImpl.selectAll();
    }

    @Override
    public HospitalTypeBean selectByID(Integer ID) {
        return hospitalTypeMapperImpl.selectByID(ID);
    }
}
